package userInterface;

import java.awt.*;
import java.awt.image.*;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.*;

public class CanvasExporter {
	public static boolean exportImage(File f,BufferedImage image,String type) {
		try
		{
			ImageIO.write(image,type,f);
		} catch (IOException e) {
			e.printStackTrace();
			return false;
		}
		return true;
	}
}
